#ifndef CODEMAINWINDOW_H
#define CODEMAINWINDOW_H

#include <QMainWindow>
#include <QMenuBar>
#include <QAction>
#include <QMenu>
#include <QFileDialog>
#include <QStatusBar>
#include <QToolBar>
#include <QLabel>
#include <QPushButton>
#include <QLayout>
#include <QDockWidget>
#include <QTextEdit>
#include <QString>
#include "funlistwidget.h"
#include "configwindow.h"
#include "networkwindow.h"
#include <QFile>
#include <QDebug>

class StatusInfo:public QWidget
{
    Q_OBJECT
public:

    StatusInfo(QWidget *p = nullptr):QWidget(p)
    {
        QHBoxLayout *mainLayout = new QHBoxLayout(this);
        QPushButton *btn1 = new QPushButton("1");
        QPushButton *btn2 = new QPushButton("2");

        mainLayout->addWidget(btn1);
        mainLayout->addWidget(btn2);
    }
};

class CodeMainWindow : public QMainWindow
{
    Q_OBJECT
public:
    explicit CodeMainWindow(QWidget *parent = nullptr);

    void initMenu();
    void initStatus();
    void initToolBar();
    void initDockWidget();

    QMenuBar *mBar;
    QMenu *fileMenu;
    QMenu *editMenu;
    QMenu *setMenu;

    QMenu *twoMenu;

    QAction *openAction;
    QAction *setAction;
    QAction *saveAction;
    QAction *closeAct;
    QAction *selectAllAction;

    QAction * printAct;

    QStatusBar *sBar;

    QToolBar *t_bar1;
    QToolBar *t_bar2;

    QDockWidget *d_widget;
    QDockWidget *s_widget;
    QTextEdit *edit;

signals:

public slots:
};

#endif // CODEMAINWINDOW_H
